package org.eclipse.emf.index.omds.core.query;

import org.eclipse.emf.index.IndexStore;
import org.eclipse.emf.index.ecore.EClassDescriptor.DAO;
import org.eclipse.emf.index.event.IndexChangeEvent;
import org.eclipse.emf.index.event.IndexChangeListener;

public class IndexFinder {
	
	
	public void getObjects(String object){
		IndexStore indexStore = new IndexStore() {
			
			@Override
			public org.eclipse.emf.index.ResourceDescriptor.DAO resourceDAO() {
				// TODO Auto-generated method stub
				return null;
			}
			
			@Override
			public void removeIndexChangeListener(IndexChangeListener listener) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void fireIndexChangedEvent(IndexChangeEvent event) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void endWrite() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void endRead() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public org.eclipse.emf.index.EReferenceDescriptor.DAO eReferenceDAO() {
				// TODO Auto-generated method stub
				return null;
			}
			
			@Override
			public org.eclipse.emf.index.ecore.EPackageDescriptor.DAO ePackageDAO() {
				// TODO Auto-generated method stub
				return null;
			}
			
			@Override
			public org.eclipse.emf.index.EObjectDescriptor.DAO eObjectDAO() {
				// TODO Auto-generated method stub
				return null;
			}
			
			@Override
			public DAO eClassDAO() {
				// TODO Auto-generated method stub
				return null;
			}
			
			@Override
			public void beginWrite() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void beginRead() {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void addIndexChangeListener(IndexChangeListener listener) {
				// TODO Auto-generated method stub
				
			}
		};;;
		System.out.println(indexStore.eObjectDAO().createQuery().name(object));
	}

}
